<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<script type="text/javascript">
	function calculateSupply (age, amount, maxage)
	{
		var calculateSupply=(amount * 365 ) * (maxage - age);
		alert('You will need' + calculateSupply 'to last you until the ripe old age of' + maxage; console.log(message);
	}
</script>

<title>Documento sin título</title>
</head>
<body>
<form>
<input type="text" id="age"/>
<input type="text" id="amount"/>
<input type="text" id="maxage"/>
<input type="button" value="click" onclick="calculateSupply(document.getElementById('ages').value,document.getElementById('amou').value,document.getElementById('max').value);"/> 
</form>
</body>
</html>
